Skip to content

[feat] Enhance Event Status Handling with Planned and Cancelled States; Refactor UI Components for Consistent Status Display #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Aloento
Copy link
Member

@Aloento Aloento commented May 16, 2025

Summary of the Pull Request:

This pull request introduces two key enhancements aimed at improving event state management and user interface consistency:

1. EventStatus Enhancements

  • New Statuses Added:

    • Planned
    • Cancelled
  • Functional Updates:

    • IsOpenStatus now treats Cancelled as a closed status, aligning with expected logic.
    • TransformerV2 has been updated to correctly process the new statuses during event transformations.

2. UI Refactor for Status Display

  • EventCard Component:

    • Status selection range has been refined specifically for maintenance events, streamlining user interactions.

Aloento added 3 commits May 16, 2025 17:41
Introduces new statuses "Planned" and "Cancelled" to the EventStatus enum for better event management.

Updates the IsOpenStatus function to consider "Cancelled" as a closed status.

Enhances the TransformerV2 function to handle the new statuses appropriately in event transformations.

This change improves clarity in event state tracking and extends functionality for future event handling.
Removes conditional rendering for the Current Status and Event Status labels in the EventCard component, ensuring they are always displayed.

Updates EventEditor to adjust the range of statuses available for selection during maintenance events, enhancing user experience.

Improves code readability and maintains consistent UI behavior across event types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the new status "planned" for the maintenance events The problem with a long description?
2 participants